<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="sk-orign-thermometer"></div>
    <script
      type="text/javascript"
      src="https://cdn.jsdelivr.net/npm/echarts@4/dist/echarts.min.js"
    ></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js"></script>
    <script src="../js/thermometer.js"></script>
    <script>
      /**
       *
       * @param {*
       * pulseData:  脉搏折线数据
       * temperatureData:  温度折线数据
       * breathData:  呼吸折线数据
       * mouthTemperature: 日期
       * inHospitalDate: 在院时间（开始-结束）
       * bottomList: 底部表格列数据
       * callback:{
       *   that:对象实例
       *   myChart:echarts实例
       * } 加载完后回调事件
       *   } options
       * @returns
       */
      //   HmThermometer 为注入到jquery的方法，可以全局调用 类似原型中写方法
      $('#sk-orign-thermometer').HmThermometer({
        pulseData: [
          ['2021-12-15 08:00:01', 172],
          ['2021-12-16 11:00:00', 166],
          ['2021-12-17 12:00:00', 154],
          ['2021-12-18 14:00:00', 88],
          ['2021-12-19 19:00:00', 137],
          ['2021-12-20 22:59:59', 127],
          ['2021-12-21 21:00:00', 110],
        ],
        temperatureData: [
          ['2021-12-15 00:00:01', 36.2],
          ['2021-12-15 03:00:01', 37.7],
          ['2021-12-15 03:10:01', 37.7],
          ['2021-12-15 04:00:01', 37.7],
          ['2021-12-15 05:00:01', 37.7],
          ['2021-12-15 06:00:01', 37.7],
          ['2021-12-15 07:00:01', 37.7],
          ['2021-12-15 08:00:01', 37.7],
          ['2021-12-15 09:00:01', 37.7],
          ['2021-12-15 22:00:01', 36.6],
          ['2021-12-15 08:00:01', null],
          ['2021-12-15 06:00:00', 36.6],
          ['2021-12-16 12:00:00', undefined],
          ['2021-12-17 16:00:00', 37.8],
          ['2021-12-18 18:00:00', 37.9],
          ['2021-12-19 23:59:59', ''],
          ['2021-12-20 09:00:00', 39],
        ],
        breathData: [
          ['2021-12-15 04:00:01', 82],
          ['2021-12-16 00:00:00', 78],
          ['2021-12-17 12:00:00', 84],
          ['2021-12-18 16:00:00', 66],
          ['2021-12-19 20:00:00', 77],
          ['2021-12-20 23:59:59', 67],
          ['2021-12-21 23:00:00', 50],
        ],
        mouthTemperature: [
          '2021-12-15',
          '2021-12-16',
          '2021-12-17',
          '2021-12-18',
          '2021-12-19',
          '2021-12-20',
          '2021-12-21',
        ],
        inHospitalDate: ['2021-12-01', '2022-01-01'],
        bottomList: [
          {
            title: '血压(mmHg)',
            data: [
              ['2021-12-15 07:34:50', '132.0/131.0'],
              ['2021-12-15 10:34:50', '142.0/131.0'],
              ['2021-12-16 00:00:00', '-/-'],
              ['2021-12-16 06:34:50', '132.0/131.0'],
              ['2021-12-17 10:34:50', '142.0/131.0'],
              ['2021-12-18 09:34:50', '142.0/131.0'],
              ['2021-12-18 10:34:50', '142.0/131.0'],
              ['2021-12-19 00:00:00', '-/-'],
              ['2021-12-20 00:00:00', '-/-'],
            ],
            rowspan: 2,
          },
          {
            title: '心率',
            data: [
              ['2021-12-15 07:34:50', '97.00'],
              ['2021-12-15 10:34:50', '88.00'],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', '83.00'],
              ['2021-12-17 10:34:50', '103.00'],
              ['2021-12-18 09:34:50', '93.00'],
              ['2021-12-18 10:34:50', '99.00'],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '呼吸(次/分)',
            data: [
              ['2021-12-15 07:34:50', 21],
              ['2021-12-15 10:34:50', 18],
              ['2021-12-16 00:00:00', null],
              ['2021-12-16 06:34:50', 19],
              ['2021-12-17 10:34:50', 20],
              ['2021-12-18 09:34:50', 17],
              ['2021-12-18 10:34:50', 23],
              ['2021-12-19 00:00:00', null],
              ['2021-12-20 00:00:00', null],
            ],
            colspan: 1,
          },
          {
            title: '大便(次/日)',
            data: [
              ['2021-12-15 10:34:50', 5],
              ['2021-12-16 06:34:50', 2],
              ['2021-12-17 10:34:50', 6],
              ['2021-12-18 10:34:50', 3],
              ['2021-12-19 00:00:00', 0],
              ['2021-12-20 00:00:00', 0],
            ],
          },
          {
            title: '小便(次/日)',
            data: [
              ['2021-12-15 10:34:50', 19],
              ['2021-12-16 06:34:50', 8],
              ['2021-12-17 10:34:50', 6],
              ['2021-12-18 10:34:50', 21],
              ['2021-12-19 00:00:00', 0],
              ['2021-12-20 00:00:00', 0],
            ],
          },
          {
            title: '入量 ml',
            data: [
              ['2021-12-15 10:34:50', '13.00'],
              ['2021-12-16 06:34:50', '113.00'],
              ['2021-12-17 10:34:50', '13.00'],
              ['2021-12-18 10:34:50', '13.00'],
              ['2021-12-19 00:00:00', null],
              ['2021-12-20 00:00:00', null],
            ],
          },
          {
            title: '出量 ml',
            data: [
              ['2021-12-15 10:34:50', '332.00'],
              ['2021-12-16 06:34:50', '333.00'],
              ['2021-12-17 10:34:50', '332.00'],
              ['2021-12-18 10:34:50', '332.00'],
              ['2021-12-19 00:00:00', null],
              ['2021-12-20 00:00:00', null],
            ],
          },
          {
            title: '尿量 ml',
            data: [
              ['2021-12-15 10:34:50', 63],
              ['2021-12-16 06:34:50', 44],
              ['2021-12-17 10:34:50', 38],
              ['2021-12-18 10:34:50', 57],
              ['2021-12-19 00:00:00', 0],
              ['2021-12-20 00:00:00', 0],
            ],
          },
          {
            title: '身高(cm)',
            data: [
              ['2021-12-15 07:34:50', '174'],
              ['2021-12-15 10:34:50', '174'],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', '174'],
              ['2021-12-17 10:34:50', '174'],
              ['2021-12-18 09:34:50', '174'],
              ['2021-12-18 10:34:50', '174'],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '体重(kg)',
            data: [
              ['2021-12-15 07:34:50', '70'],
              ['2021-12-15 10:34:50', '70'],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', '70'],
              ['2021-12-17 10:34:50', '70'],
              ['2021-12-18 09:34:50', '70'],
              ['2021-12-18 10:34:50', '70'],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '过敏药物1',
            data: [
              ['2021-12-15 07:34:50', '头孢'],
              ['2021-12-15 10:34:50', '青霉素'],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', ''],
              ['2021-12-17 10:34:50', '青霉素'],
              ['2021-12-18 09:34:50', '头孢'],
              ['2021-12-18 10:34:50', ''],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '过敏药物2',
            data: [
              ['2021-12-15 07:34:50', '头孢2'],
              ['2021-12-15 10:34:50', '青霉素'],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', ''],
              ['2021-12-17 10:34:50', '青霉素'],
              ['2021-12-18 09:34:50', '头孢2'],
              ['2021-12-18 10:34:50', ''],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '特殊治疗',
            data: [
              ['2021-12-15 07:34:50', ''],
              ['2021-12-15 10:34:50', ''],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', ''],
              ['2021-12-17 10:34:50', '化疗'],
              ['2021-12-18 09:34:50', ''],
              ['2021-12-18 10:34:50', '化疗'],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '血糖(mmol/L)',
            data: [
              ['2021-12-15 07:34:50', '15 mmol/L'],
              ['2021-12-15 10:34:50', ''],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', '7 mmol/L'],
              ['2021-12-17 10:34:50', ''],
              ['2021-12-18 09:34:50', ''],
              ['2021-12-18 10:34:50', ''],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
          {
            title: '其他',
            data: [
              ['2021-12-15 07:34:50', ''],
              [
                '2021-12-15 10:34:50',
                '血红素,血红素血红素血红素血红素血红素血红素血红素血红素血红素血红素血红素血红素血红素血红素',
              ],
              ['2021-12-16 00:00:00', ''],
              ['2021-12-16 06:34:50', '血红素'],
              ['2021-12-17 10:34:50', ''],
              ['2021-12-18 09:34:50', ''],
              ['2021-12-18 10:34:50', ''],
              ['2021-12-19 00:00:00', ''],
              ['2021-12-20 00:00:00', ''],
            ],
          },
        ],
        callback: function (that, myChart) {
          console.log('加载完成')
        },
      })
    </script>
  </body>
</html>
